package com.dearbinge.web.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;


@SpringBootApplication(scanBasePackages = "com.dearbinge.web.user")
@ImportResource({ "classpath:applicationContext.xml", "dubbo-services.xml" })
public class UserApp {
	public static void main(String[] args) {
//		SpringApplication.run(UserController.class, args);
		SpringApplication.run(UserApp.class, args);
	}


//	@Bean(name = "multipartResolver")
//	public CommonsMultipartResolver getCommonsMultipartResolver() {
//	    CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
//	    multipartResolver.setMaxUploadSize(20971520);
//	    multipartResolver.setMaxInMemorySize(1048576);
//	    return multipartResolver;
//	}

}
